package com.zmn.mcc.business.interfaces.role;

import com.zmn.common.dto.LoginStaff;
import com.zmn.common.dto2.ResponseDTO;
import com.zmn.mcc.model.entity.role.McRoleStaff;

import java.util.List;

/**
 * @author heguanghua
 * @since 2020/04/14 22:57
 */
public interface RoleStaffBService {

    /**
     * 为指定员工添加角色
     * @param staffId 员工ID
     * @param roleIds 角色ID集合
     * @param loginStaff
     * @return
     */
    ResponseDTO addRoleStaff(Integer staffId, List<Integer> roleIds, LoginStaff loginStaff, String ip);

    /**
     * 移除指定员工的角色
     * @param staffId 员工ID
     * @param roleIds 角色ID集合
     * @param loginStaff
     * @return
     */
    ResponseDTO deleteRoleStaff(Integer staffId, List<Integer> roleIds, LoginStaff loginStaff, String ip);

    /**
     * 描述:
     *
     * @param roleId
     * @param staffId
     * @param loginStaff
     * @param ip
     * @author jiafei
     * @since 2021/10/14 11:31
     */
    void deleteRoleByStaffId(Integer roleId, Integer staffId, LoginStaff loginStaff, String ip);



}
